DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSetCollection Class / Read Method / Read(IEnumerable<String>,ReadBehaviours) Method

A set of Filenames to read.

The behaviours to be used when reading this stream







In This Topic
    Read(IEnumerable<String>,ReadBehaviours) Method
    In This Topic
    Creates and adds a collection of DicomDataSet objects from a collection of external DICOM files
    Syntax
    'Declaration
     
    
    Public Overloads Function Read( _
       ByVal FileNames As System.Collections.Generic.IEnumerable(Of String), _
       Optional ByVal ReadBehaviour As ReadBehaviours _
    ) As DicomDataSetCollection
    'Usage
     
    
    Dim instance As DicomDataSetCollection
    Dim FileNames As System.Collections.Generic.IEnumerable(Of String)
    Dim ReadBehaviour As ReadBehaviours
    Dim value As DicomDataSetCollection
     
    value = instance.Read(FileNames, ReadBehaviour)
    public DicomDataSetCollection Read( 
       System.Collections.Generic.IEnumerable<string> FileNames,
       ReadBehaviours ReadBehaviour
    )
    public function Read( 
        FileNames: System.Collections.Generic.IEnumerable;
        ReadBehaviour: ReadBehaviours
    ): DicomDataSetCollection; 
    public function Read( 
       FileNames : System.Collections.Generic.IEnumerable,
       ReadBehaviour : ReadBehaviours
    ) : DicomDataSetCollection;
    public: DicomDataSetCollection* Read( 
       System.Collections.Generic.IEnumerable<string*>* FileNames,
       ReadBehaviours* ReadBehaviour
    ) 
    public:
    DicomDataSetCollection^ Read( 
       System.Collections.Generic.IEnumerable<String^>^ FileNames,
       ReadBehaviours^ ReadBehaviour
    ) 

    Parameters

    FileNames

    A set of Filenames to read.

    ReadBehaviour

    The behaviours to be used when reading this stream

    Return Value

    If successful, a DicomDataSetCollection is returned, and is added to the appropriate collection. If unsuccessful, an appropriate error is thrown.
    Remarks
    Like reading from a single DICOM file, this method loops through the list of files and read them one by one and if successful returns a DicomDataSetCollectionwhich contains all the newly created DicomDataSets.
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also